package com.example.dynamicdatasource.service;

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.concurrent.ExecutionException;

/**
 * @author haitao
 * @date 2022/6/8 1:46 上午
 */
@Service
public class DynamicDataSourceService {

    @Resource
    private EmployeeService employeeService;



    public void testDynamicDataSource() throws ExecutionException, InterruptedException {
        employeeService.saveAll();
    }
}
